<?php
/**
* ShopEx licence
*
* @copyright  Copyright (c) 2005-2010 ShopEx Technologies Inc. (http://www.shopex.cn)
* @license  http://ecos.shopex.cn/ ShopEx License
 */

class b2c_ctl_site_single extends b2c_frontpage{
	function __construct($app){
        parent::__construct($app);
        $this->verify_member();
        $single_title = $this->get_single_title();
        $this->pagedata['single_title'] = $single_title;
    }
    public function index(){
        $this->set_tmpl('single');
        $this->page('site/single/index.html');
    }
    public function goingto($arg){
    	switch ($arg) {
    		case '1':
    			$this->redirect(array('app'=>'b2c', 'ctl'=>'site_single', 'act'=>'index'));
    			break;
    		case '2':
    			$this->redirect(array('app'=>'b2c', 'ctl'=>'site_single', 'act'=>'single2'));
    			# code...
    			break;
    		case '3':
    			$this->redirect(array('app'=>'b2c', 'ctl'=>'site_single', 'act'=>'single3'));
    			# code...
    			break;
    		case '4':
    			$this->redirect(array('app'=>'b2c', 'ctl'=>'site_single', 'act'=>'single4'));
    			# code...
    			break;
    		case '5':
    			$this->redirect(array('app'=>'b2c', 'ctl'=>'site_single', 'act'=>'single5'));
    			# code...
    			break;
    		case '6':
    			$this->redirect(array('app'=>'b2c', 'ctl'=>'site_single', 'act'=>'single6'));
    			break;
    		default:
    			# code...
    			break;
    	}
    }
    public function single2(){
        $this->set_tmpl('single2');
        $this->page('site/single/index.html');
    }
    public function single3(){
        $this->set_tmpl('single3');
        $this->page('site/single/index.html');
    }
    public function single4(){
        $this->set_tmpl('single4');
        $this->page('site/single/index.html');
    }
    public function single5(){
        $this->set_tmpl('single5');
        $this->page('site/single/index.html');
    }
    public function single6(){
        $this->set_tmpl('single6');
        $this->page('site/single/index.html');
    }
    public function single7(){
        $this->set_tmpl('single7');
        $this->page('site/single/index.html');
    }
    public function single8(){
        $this->set_tmpl('single8');
        $this->page('site/single/index.html');
    }
}
